<?php
include 'weixin.class.php';
$weixin = new class_weixin_adv("wx873faf7512b61145", "c1efbe6e57bd6cb78ad29ecec928295c");
$post = '{
 "button":[
 {
 "name":"微通知书",
 "sub_button":[
 {
 "type":"click",
 "name":"绑定通知书",
 "key":"绑定通知书"
 },
 {
 "type":"click",
 "name":"个人信息",
 "key":"个人信息"
 }]
 },
 {
 "name":"我的学校",
 "sub_button":[
 {
 "type":"click",
 "name":"学校简介",
 "key":"学校简介"
 },
 {
 "type":"click",
 "name":"学院简介",
 "key":"学院简介"
 },
 {
 "type":"click",
 "name":"校园导航",
 "key":"校园导航"
 }]
 },
 {
 "name":"入学指南",
 "sub_button":[
 {
 "type":"click",
 "name":"入学路线指南",
 "key":"入学路线指南"
 },
 {
 "type":"click",
 "name":"校园社区",
 "key":"校园社区"
 }]
 }]
 }';
var_dump($weixin->create_menu($post));
?>